package org.cxmzxy.class2333;

public class sxh {
    public static  void main(String[] args){
        int num=153;
        int i=num;
        int sum=0;
        while (num >0) {
            int a=num%10;
            sum +=a*a*a;
            num /=10;
        }
        if (sum==i){
            System.out.println(i+"是水仙花数");
        }else{
            System.out.println(i+"不是水仙花数");
        }
    }
}
